package com.hoo.entity.account;

import java.util.Date;
import java.util.List;
import javax.persistence.Entity;

import org.apache.ibatis.type.Alias;

@Entity
@Alias("resource")
public class Resource {
	public final static int TYPE_MENU = 0;
	public final static int TYPE_PERMISSION = 1;
	public final static int MODULE_ACCOUNT = 1;
	public final static int MODULE_SUBMIT_CARD = 2;
	public final static int MODULE_PAYMENT_ORDER = 3;
	public final static int MODULE_PAYMENT = 4;
	public final static int MODULE_RATE = 5;
	public final static int MODULE_AGENT = 6;
	private Integer id;
	private Integer parentId;
	private String parentIds;
	private Integer level;
	private String name;
	private String href;
	private String target;
	private String icon;
	private Integer sort;
	private Integer showFlag;
	private Integer dataStatus;
	private Integer activeFlag;
	private Integer moduleId;
	private String permission;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(Integer showFlag) {
		this.showFlag = showFlag;
	}

	public Integer getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Integer dataStatus) {
		this.dataStatus = dataStatus;
	}

	public Integer getActiveFlag() {
		return activeFlag;
	}

	public void setActiveFlag(Integer activeFlag) {
		this.activeFlag = activeFlag;
	}

	public Integer getModuleId() {
		return moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public Integer getAddBy() {
		return addBy;
	}

	public void setAddBy(Integer addBy) {
		this.addBy = addBy;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Integer getUpdBy() {
		return updBy;
	}

	public void setUpdBy(Integer updBy) {
		this.updBy = updBy;
	}

	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}

	public List<Resource> getChildren() {
		return children;
	}

	public void setChildren(List<Resource> children) {
		this.children = children;
	}

	private String remarks;
	private Integer resourceType;
	private Integer addBy;
	private Date addTime;
	private Integer updBy;
	private Date updTime;
	private List<Resource> children;

}
